[Slack Alert] Tiktok Ads URL Check

Receive a Slack alert if any of your active Tiktok Ads lead to unresponsive landing pages.

With this automation, get a Slack message for any ads with non-functioning URLs.

Notion image

JSON Recipe

Import the automation recipe(s) into your own account. Don’t know how? Learn here.

Tiktok ADs URL Check
{"name":"[Slack Alert] Tiktok Ads URL Check","description":"tt_url_check_2023-03-14","nodes":{"start_1":{"type":"start","logging_enabled":false,"x":91,"y":329},"stop_1":{"type":"stop","logging_enabled":false,"x":88,"y":395,"inputs":{"stop":{"export_enabled":true}}},"health_check_urls_v2_1":{"type":"health_check_urls_v2","title":"Health Check Urls","description":"Checks urls for their health","logging_enabled":false,"max_job_retries":6,"timeout":300,"x":814,"y":270,"inputs":{"follow_redirects":{"export_enabled":true,"data":true},"max_request_duration":{"export_enabled":true,"data":15000}}},"if_v2_1":{"type":"if_v2","logging_enabled":false,"x":1293,"y":269,"inputs":{"b":{"export_enabled":true,"data":[]},"condition":{"export_enabled":true,"data":"not_equal"}}},"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":1124,"y":449,"group":"group_1","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/0/text/text","value":"Hey there, the URL of this ad {{input.value/ad_name}} (Ad ID: {{input.value/id}}) has not been responsive. Could you please check this URL {{input.value/url}}?"},{"op":"replace","path":"/1/elements/0/url","value":"https://ads.tiktok.com/i18n/perf/creative?aadvid={{input.value/advertiser_id}}\u0026keyword={{input.value/ad_id}}"}]},"data":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":""}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Open in Ads Manager"},"url":""}]}]}}},"slack_notifier_v2_1":{"type":"slack_notifier_v2","logging_enabled":false,"x":1438,"y":454,"group":"group_1"},"slack_select_conversation_id_1":{"type":"slack_select_conversation_id","logging_enabled":false,"x":89,"y":325,"group":"group_1","inputs":{"conversation_id":{"title":"conversation_id","description":"Select a Slack Channel or Conversation"}}},"slack_notifier_v2_2":{"type":"slack_notifier_v2","logging_enabled":false,"x":432,"y":500,"group":"group_1","inputs":{"blocks":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":"⚠️These ad(s) have a non-functioning URL."}}]},"thread_ts":{"export_enabled":true}}},"for_each_v2_1":{"type":"for_each_v2","logging_enabled":false,"x":782,"y":413,"group":"group_1","outputs":{"done":{"title":"done","description":"Triggers when all items are iterated"}}},"filter_v2_1":{"type":"filter_v2","logging_enabled":false,"x":1056,"y":269,"inputs":{"filters":{"export_enabled":true,"data":[{"value":400,"pointer":"/code","operator":"\u003e="}]}},"outputs":{"filtered":{"title":"filtered","description":"Triggered when filtered"}}},"delay_1":{"type":"delay","logging_enabled":false,"x":61,"y":523,"inputs":{"duration":{"export_enabled":true,"data":10800}}},"tik_tok_select_ad_account_ids_1":{"type":"tik_tok_select_ad_account_ids","logging_enabled":false,"x":33,"y":50,"inputs":{"ad_account_ids":{"export_enabled":true}}},"patch_json_list_v2_1":{"type":"patch_json_list_v2","logging_enabled":false,"x":509,"y":211,"group":"group_2","inputs":{"value":{"export_enabled":true}}},"input_any_1":{"type":"input_any","logging_enabled":false,"x":512,"y":27,"group":"group_2","inputs":{"any":{"export_enabled":true,"data":[{"op":"add","path":"/root","value":{}},{"op":"move","path":"/root/url","from":"/landing_page_url"},{"op":"add","path":"/root/id","value":{"provider":"tiktok","type":"ad"}},{"op":"move","path":"/root/id/id","from":"/ad_id"},{"op":"add","path":"/root/id/context/adgroup_id","value":{"provider":"tiktok","type":"ad_group"}},{"op":"move","path":"/root/id/context/adgroup_id/id","from":"/adgroup_id"},{"op":"move","path":"/root/id/context/advertiser_id","from":"/advertiser_id"},{"op":"move","path":"/root/id/context/ad_name","from":"/ad_name"},{"op":"move","path":"","from":"/root"}]}}},"tik_tok_fetch_ads_1":{"type":"tik_tok_fetch_ads","logging_enabled":false,"x":275,"y":210,"group":"group_2","inputs":{"operational_status":{"export_enabled":true,"data":"RUNNING"}}},"if_v2_2":{"type":"if_v2","logging_enabled":false,"x":746,"y":211,"group":"group_2","inputs":{"b":{"export_enabled":true,"data":[]},"condition":{"export_enabled":true,"data":"not_equal"}}},"for_each_v2_2":{"type":"for_each_v2","logging_enabled":false,"x":338,"y":269}},"edges":["for_each_v2_1.do:patch_json_v2_1.patch","slack_notifier_v2_2.thread_ts:slack_notifier_v2_1.thread_ts","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_1.conversation_id","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_2.conversation_id","slack_notifier_v2_2.sent:for_each_v2_1.start","patch_json_v2_1.data:slack_notifier_v2_1.blocks","for_each_v2_1.item:patch_json_v2_1.value","patch_json_v2_1.patched:slack_notifier_v2_1.send","slack_notifier_v2_1.sent:for_each_v2_1.next","if_v2_1.true:slack_notifier_v2_2.send","health_check_urls_v2_1.results:filter_v2_1.items","health_check_urls_v2_1.checked:filter_v2_1.filter","filter_v2_1.items:if_v2_1.a","filter_v2_1.filtered:if_v2_1.evaluate","filter_v2_1.items:for_each_v2_1.items","start_1.start:for_each_v2_2.start","for_each_v2_2.done:delay_1.start","if_v2_1.false:for_each_v2_2.next","for_each_v2_1.done:for_each_v2_2.next","delay_1.delayed:for_each_v2_2.start","tik_tok_select_ad_account_ids_1.ad_account_ids:for_each_v2_2.items","patch_json_list_v2_1.data_list:health_check_urls_v2_1.urls","input_any_1.any:patch_json_list_v2_1.patches","for_each_v2_2.item:tik_tok_fetch_ads_1.ad_account_id","for_each_v2_2.do:tik_tok_fetch_ads_1.fetch","tik_tok_fetch_ads_1.ads:patch_json_list_v2_1.data_list","tik_tok_fetch_ads_1.fetched:patch_json_list_v2_1.patch","patch_json_list_v2_1.patched:if_v2_2.evaluate","patch_json_list_v2_1.data_list:if_v2_2.a","if_v2_2.true:health_check_urls_v2_1.check","if_v2_2.false:for_each_v2_2.next"],"groups":{"group_1":{"title":"Send Slack Message","description":"","x":1529,"y":272,"inputs":["for_each_v2_1.items","slack_notifier_v2_2.send"],"outputs":["for_each_v2_1.done"]},"group_2":{"title":"Get active URLS","description":"","x":577,"y":275,"inputs":["tik_tok_fetch_ads_1.ad_account_id","tik_tok_fetch_ads_1.fetch"],"outputs":["if_v2_2.true","patch_json_list_v2_1.data_list","if_v2_2.false"]}},"widgets":{"widget_1":{"title":"Slack Channel","description":"Select a Slack Channel or Conversation","position":2,"input":"slack_select_conversation_id_1.conversation_id"},"widget_2":{"title":"Run Every","description":"The duration to delay the trigger (in Seconds)","position":3,"icon":"las la-clock","input":"delay_1.duration"},"widget_3":{"title":"Ad Accounts","description":"Select one or more TikTok Ad Accounts","position":0,"input":"tik_tok_select_ad_account_ids_1.ad_account_ids"},"widget_4":{"title":"Ad Status","description":"The operational status of the ads.\nRunning = Active campaign | Active Adset | Active ad","position":0,"icon":"las la-check-circle","input":"tik_tok_fetch_ads_1.operational_status"}},"variables":{},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}

How To

After creating the automation, make a few selections and then hit “Run Automation”. The check will then take place on the specified weekday(s) at the specified time.

💡
Per default, all active ads in an account will be checked. If you want to be more specific in the campaign, ad set, or ad selection you can add filters to the automation following this Builder tutorial.

Step 1

Select an Ad Account

Notion image

Step 2

Select a Slack Channel, in which you would like to receive the notifications

Notion image

Step 3

Define how often you want the automation to run

Notion image
⚠️
In order to check whether the URLs are healthy, we make a server-side request to each. Note that if your website uses Cloudflare, we may report URLs as unhealthy despite being accessible in your browser. Reach out to your CSM or contact us at support@kitchn.io if that is the case for you.
 
Did this answer your question?
😞
😐
🤩

Last updated on March 14, 2023